/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package presentation;

import formatters.EditFormatter;
import formatters.ViewFormatter;
import javax.ejb.CreateException;
import javax.naming.NamingException;
import parsers.InputParser;

/**
 *
 * @author Alejandro
 */
public class PhoneElement extends PresentationElement{

    @Override
    public void acceptView(ViewFormatter f) {
        f.formatPhone(this);
    }

    @Override
    public void acceptEdit(EditFormatter f) {
        f.formatPhone(this);
    }

    @Override
    public void acceptInput(InputParser p) {
        p.parsePhone(this);
    }

    @Override
    public void setParam(String param, Object value) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public Object getParam(String param) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

}
